#include <cstdio>

extern "C" {
#include "KadClog.h"
}

#include "utilities.h"

void get_pretty_time(char *time, size_t time_len) {
	time_t t = KadClog_get_current_dvn_time();
	snprintf(time, time_len, "[%u] ", (unsigned int) t);
}

void printAddr(in_addr_t addr)
{
  struct in_addr n_addr;
  char* a_addr = NULL;
  n_addr.s_addr = htonl(addr);
  a_addr = inet_ntoa(n_addr);
  printf("%s", a_addr);
}

